<template>
  <el-card :style="background" shadow="hover">
    <!-- 标题 -->
    <div class="title">
      {{ title }}
    </div>
    <!-- 数据 -->
    <div class="data">
      {{ data }}
    </div>
  </el-card>
</template>

<script>
export default {
  name: "SmallStatistics",
  data() {
    return {
      background: {
        backgroundColor: this.backgroundColor + " !important",
      },
    };
  },
  computed: {},
  created() {
  },
  props: {
    title: {
      type: String,
      require: true,
      default: "no found",
    },
    data: {
      type: Number,
      require: true,
      default: 404,
    },
    backgroundColor: {
      type: String,
      require: true,
      default: "#ffffff",
    },
  },
};
</script>

<style>
.title {
  line-height: 16px;
  font-size: 16px;
  color: #fff;
  text-align: start;
  font-weight: 500;
}
.data {
  color: #fff;
  font-size: 30px;
  text-align: start;
  line-height: 30px;
  margin-top: 20px;
  font-weight: 1000;
}
</style>